<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="__PUBLIC__/css/base.css" type="text/css" rel="stylesheet" />

<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/js/util.js" type="text/javascript"></script>
<title>多彩气质宝贝-国际化儿童早教机构</title>
<script type="text/javascript" language="javascript">


function saveComment(){
	//

	$.post('__URL__/saveBlogComment',
    	    {	
	    	    'id':"<?php echo ($info['id']); ?>",	    	    
	    	    'content':$('#commentcontent').val(),
	    	},
			    function(data){
					alert(data.info);					
					$('#comment').prepend(
							"<div class='w92auto border-d-b p10'>"+
							"<p class='mT20 mB10'><span class='blue'>"+
							"<?php echo ($_SESSION[C('USER_AUTH_KEY')]); ?>"+
							"</span><span class='fontGray6'>于</span>"+
							getCurrentTime()+
							"<span class='fontGray6'>发表</span></p>"+							
							"<p>"+$('#commentcontent').val()+"</p>"+
							"</div>");
					//$('#commentcontent').empty();	
					$("#commentcontent").attr("value",'');
			    },
		    'json');	
}
</script>
</head>

<body onload="menu0display()">





<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" language="javascript">


function menu0display(){
	var menu = document.getElementById("menu"); 
	var menuLength = menu.getElementsByTagName("li");
	var arry = new Array("solid #ff6d25 6px","solid #ff7b7c 6px","solid #ffb000 6px","solid #8ccd00 6px","solid #00bc00 6px","solid #00d0e3 6px","solid #d479ff 6px","solid #a200ff 6px");

	var chooseId = document.getElementById("<?php echo ($moduleInfo['cssid']); ?>");
	
	//将以前老的样式干掉
	for(var i=0;i<menuLength.length;i++){		
		var menuno = document.getElementById("menu"+i);		
		if(menuno.className == "black fontbold"){ 
			menuno.className = "white";			
		}		
	}
	//添加新样式
	var isdefault = 1 ;
	for(var i=0;i<menuLength.length;i++){		
		var menuno = document.getElementById("menu"+i);		
		if("<?php echo ($moduleInfo['cssid']); ?>"==("menu"+i)){
			menuno.className = "black fontbold";
			document.getElementById("menu00").className = "w100auto mT20 menuB";
			document.getElementById("menu00").style.borderBottom = arry[i];
			isdefault = 0;
		}
	}
	//如果在最后都没有设置 black fontbold 样式，则默认加在首页上
	if(isdefault==1){
		document.getElementById("menu0").className = "black fontbold";
		document.getElementById("menu00").className = "w100auto mT20 menuB";		
		document.getElementById("menu00").style.borderBottom = "solid #ff6d25 6px";
	}
	return ;

	}
</script>
</head>
<body>


<div class="lineB line24" style="background: #f5f5f5; height: 24px;">
<div class="w960"><span class="fLeft">多彩气质宝贝 - 重庆站 [切换城市] <a
	class="orange" href="#">重庆</a> <a class="orange" href="#">上海</a></span> <span
	class=" fRight">&nbsp; 
<?php if(isset($_SESSION[C('USER_AUTH_KEY')])): ?><span class="orange">您好，<?php echo ($_SESSION[C('USER_AUTH_KEY')]); ?></span>&nbsp;&nbsp;
<a href="__APP__/LoginUser/index/type/blog" class="orange">我的首页</a>&nbsp;&nbsp;|
<a href="__APP__/Register/loginout/" class="orange">安全退出</a>&nbsp;&nbsp;|
<?php else: ?> <span class="orange">您还未登录！</span>&nbsp;&nbsp;| <a
	href="__APP__/Register/login/" class="orange">登陆</a>&nbsp;|&nbsp;&nbsp;<a
	href="__APP__/Register/" class="orange">注册</a>&nbsp;|&nbsp;&nbsp;<?php endif; ?> 
<a  class="Gray" href="__APP__/ToolTip/index/code/sqll" target="_blank">社区理念</a>&nbsp;|&nbsp;<a
	class="Gray" href="__APP__/ToolTip/index/code/jyts" target="_blank">教育特色</a>&nbsp;|&nbsp;<a
	class="Gray" href="__APP__/ToolTip/index/code/jxhj" target="_blank">教学环境</a>&nbsp;|&nbsp;<a
	class="Gray" href="__APP__/ToolTip/index/code/szjs" target="_blank">师资介绍</a>&nbsp;|&nbsp;<a
	class="Gray" href="__APP__/ToolTip/index/code/cjwt" target="_blank">常见问题</a></span></div>
</div>
<div class="w960 clear"
	style="height: 92px; background: url(__PUBLIC__/image/logo-227.png) no-repeat; position: relative; z-index: 0;">
<span class="bgImg"
	style="background-position: 0 0; width: 321px; height: 66px; position: absolute; bottom: -30px; right: 0; z-index: 0;"></span>
</div>
<div class="w960 clear">
<ul id="menu" class="line24  font18"
	style="position: relative; z-index: 0; font-family: '微软雅黑';">
	<li class="fLeft menuli  bgImg"
		style="background-position: 0 -254px; z-index: 1; left: 0;"><a
		id="menu0" class="black fontbold" href="__APP__/Index/">&nbsp;&nbsp;&nbsp;首&nbsp;&nbsp;页&nbsp;&nbsp;</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -217px; z-index: 2; left: 117px;">
	<a id="menu1" class="white" href="__APP__/Course/">课程介绍</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -180px; z-index: 3; left: 234px;">
	<a id="menu2" class="white" href="__APP__/NewsRelease/">新闻公告</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -143px; z-index: 4; left: 351px;">
	<a id="menu3" class="white" href="__APP__/Video/">精彩视频</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -105px; z-index: 5; left: 468px;">
	<a id="menu4" class="white" href="__APP__/Appraise/">家长评价</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -69px; z-index: 6; left: 585px;"><a
		id="menu5" class="white" href="__APP__/Evaluation/">专业评测</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -292px; z-index: 7; left: 702px;">
	<a id="menu6" class="white" href="__APP__/AboutUs/">关于我们</a></li>
	<li class="fLeft menuli bgImg"
		style="background-position: 0 -329px; z-index: 8; left: 819px;">
	<a id="menu7" class="white" href="__APP__/Blog/">育儿博客</a></li>
</ul>
</div>
<!-- 
<div id="menu00" class="w100auto mT20 menuB" style="border-bottom:solid #ff6d25 6px;"></div>
 -->
 <div id="menu00" ></div>

<div id="contain" class="w950 clear mT10">
</body>
</html>
<!----------------------contain begin------------------------->
<div id="contain" class="w950 clear mT10">
<div class="w92auto mT10">
<p class="font22 p10 lineB fontbold" align="center"><?php echo ($info['title']); ?></p>
<p align="center" class="fontGray9 p5">作者：<?php echo ($info['user']); ?>&nbsp;&nbsp;&nbsp;
发布时间：<?php echo ($info['createdate']); ?></p>


<!--------article begin---------->


<div id="article-con"><?php echo ($info['content']); ?></div>
<!--------article end----------></div>

<div class="clear"></div>

</div>

<div class="border-s-Orange p10 w92auto">

<div class="font14 fontbold lineB p5 blue">&raquo;对当前文章的评论</div>
<!-- 查询评论 -->
<div id="comment">
	<?php if(is_array($comment_list)): $i = 0; $__LIST__ = $comment_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$comment_vo): ++$i;$mod = ($i % 2 )?><div class="w92auto border-d-b p10">
		<p class="mT20 mB10"><span class="blue"><?php echo ($comment_vo['comment_user']); ?> </span><span class="fontGray6">于</span> <?php echo ($comment_vo['createdate']); ?> <span class="fontGray6">发表</span></p>
		<p><?php echo ($comment_vo['content']); ?></p>
	</div><?php endforeach; endif; else: echo "" ;endif; ?>
</div>

<!-- blog评论 -->

<?php if(isset($_SESSION[C('USER_AUTH_KEY')])): ?><div class="font14 fontbold lineB p5 blue mT20">&raquo;立即发表评论</div>
<?php if(($info['commentright'] == 1)): ?><dl class="mT10 mB10 mL10">
	<dt class="fLeft">用&nbsp;户&nbsp;名：</dt>
	<dd><span class="blue"><?php echo ($_SESSION[C('USER_AUTH_KEY')]); ?></span></dd>
	<dd class="mT10"><textarea id="commentcontent" rows="6" cols="50" style="width:70%;"></textarea>
	</dd>
</dl>

<input style="height:30px;width:80px;background-color:#00659f;cursor:pointer;" class="lineBorder white fontbold mB10 mL10" type="button" onclick="saveComment();" value="提交评论" /> *
以上用户言论只代表其个人观点，不代表多彩宝贝网站的观点或立场 <?php else: ?><?php endif; ?>
<?php else: ?>
<div class="font14 fontbold lineB p5 blue">&raquo;您尚未登陆，无法进行评论！</div><?php endif; ?>

</div>

<!----------------------contain end------------------------->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="line24 clearBoth mT10 footerbg p10" align="center"><a
	href="__APP__/Index">回到首页</a>&nbsp;|&nbsp;<a
	href="__APP__/ToolTip/index/code/zxns" target="_blank">招贤纳士</a>&nbsp;|&nbsp;<a
	href="__APP__/ToolTip/index/code/hzjm" target="_blank">合作加盟</a>&nbsp;|&nbsp;<a
	href="__APP__/ToolTip/index/code/fltk" target="_blank">法律条款</a>&nbsp;|&nbsp;<a
	href="__APP__/ToolTip/index/code/wzdt" target="_blank">网站地图</a>&nbsp;|&nbsp;<a
	href="__APP__/ToolTip/index/code/yqlj" target="_blank">友情链接</a><br />
版权所有:Colourful Baby 备案号：渝IC00000</div>
</body>
</html>
</body>
</html>